Get List Of Folders
AutomatR.Dropbox.Activities.GetListOfFolders
The "Get List Of Folders" activity in AutomatR is part of the Dropbox activities package, designed to retrieve the list of folders within a specified folder or root folder on a user's Dropbox account. This activity facilitates efficient management of folders and enables further automation workflows.
Properties
Name | Description |
---|---|
Input | |
Folder Path | Specifies the path of the folder in Dropbox for obtaining the list of folders within it. String variables containing the folder path. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get List Of Folders" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
Output | |
Result | Outputs the list of folders with datatype metadata. Variables of relevant types (e.g., List<Metadata> ) to store the retrieved folders. |
How to Use
- Drag and drop the "Get List Of Folders" activity onto the workflow.
- Configure the properties by specifying the folder path in Dropbox from which you want to obtain the list of folders.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to retrieve the list of folders from the specified folder in Dropbox.
Example:
Consider an example where the "Get List Of Folders" activity is used to retrieve the list of folders from a root folder named "Projects" in Dropbox:
Get List Of Folders:
Display Name: "List Projects Folders"
Folder Path: "/Projects"
Response: listOfFolders
In this example, the activity retrieves the list of folders from the "/Projects" root folder in Dropbox, and the list of folders is stored in the variable "listOfFolders" for further processing in the workflow.
Important Notes:
- Ensure that the activity is placed within a "Dropbox Scope" activity to establish the necessary authentication scope.
- Verify that the specified folder path in Dropbox exists; otherwise, an exception will be thrown.